import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// import { Swipe, SwipeItem } from 'vant';
// Vue.use(Swipe).use(SwipeItem);
import Vant from 'vant';
import 'vant/lib/index.css';
Vue.use(Vant);
import { Overlay } from 'vant';
Vue.use(Overlay);

Vue.filter('cover', function (posters) {
  if (!posters) return "http://placehold.it/640x1280";
  return posters.split(",")[0];
})
// filters
import * as filters from '@/utils/filters'
for (const key in filters) {
  Vue.filter(key, filters[key])
}

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
